/**
 * Copyright (c) 2010 S9,Inc.All rights reserved.
 * Created by 2012-6-1 
 */
package cn.jdy.platform.entity;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * 网站项目配置值信息 网站项目配置值信息
 *
 * @author: wuzhiliang
 * @data: 2013-7-11
 */
@Entity
public class ConfValue implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)//根据数据库自动适配 mysql默认自增
	private Long id;//本实体记录的唯一标识
	private Long pid;//父id
	private Long typeid;//对应conftype的id

	private String keywords;//配置项关键字
	@Column(length = 4000)
	private String value0;//配置值-文字/编辑器内容
	private String value1;//配置值-链接
	private String value2;//配置值-图片地址
	private String value3;//配置值-扩展
	private String value4;//配置值-扩展

	private Integer sort;//排序
	private Integer levels;//级数
	private String remark;//配置项说明

	@Transient
	private List<ConfValue> children;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public Long getTypeid() {
		return typeid;
	}

	public void setTypeid(Long typeid) {
		this.typeid = typeid;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public String getValue0() {
		return value0;
	}

	public void setValue0(String value0) {
		this.value0 = value0;
	}

	public String getValue1() {
		return value1;
	}

	public void setValue1(String value1) {
		this.value1 = value1;
	}

	public String getValue2() {
		return value2;
	}

	public void setValue2(String value2) {
		this.value2 = value2;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getLevels() {
		return levels;
	}

	public void setLevels(Integer levels) {
		this.levels = levels;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getValue3() {
    return value3;
  }

  public void setValue3(String value3) {
    this.value3 = value3;
  }

  public String getValue4() {
    return value4;
  }

  public void setValue4(String value4) {
    this.value4 = value4;
  }

  public List<ConfValue> getChildren() {
		return children;
	}

	public void setChildren(List<ConfValue> children) {
		this.children = children;
	}

}
